package com.ihr360.expr.core;

/**
 * @author richey
 */
public enum GraphCycleExceptionType {

    COLUMN_SCOPE_GE("Circular reference found: %s - %s");

    private GraphCycleExceptionType(String message) {
        this.message = message;
    }

    String message;

    public static String getMessage(GraphCycleExceptionType  exceptionType,Object[] args) {
        if (args == null || args.length == 0) {
            return exceptionType.message;
        }
        return String.format(exceptionType.message, args);
    }

}
